package com.hr.checkrepetition.model.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@Accessors(chain = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ArticleCheckVo implements Serializable {

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "报告编号")
    private String reportNo;

    @ApiModelProperty(value = "检测内容标题")
    private String checkTitle;

    @ApiModelProperty(value = "作者名称")
    private String nickname;

    @ApiModelProperty(value = "检测总字数")
    private Integer checkWordNum;

    @ApiModelProperty(value = "检查时间")
    private Date checkTime;

    @ApiModelProperty(value = "最高相似比,复写率")
    private BigDecimal checkRate;

    @ApiModelProperty(value = "自写率")
    private BigDecimal writeRate;

    @ApiModelProperty(value = "检测范围")
    private List<PostCheckScopeVo> postCheckScopeList;

    @Data
    @Accessors(chain = true)
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class PostCheckScopeVo{
        @ApiModelProperty(value = "id")
        private Integer id;

        @ApiModelProperty(value = "文章标题")
        private String repeatContent;

        @ApiModelProperty(value = "重复率")
        private BigDecimal repetitionRate;

        @ApiModelProperty(value = "检测平台")
        private String platform;

        @ApiModelProperty(value = "内容链接")
        private String articleLink;
    }

}
